package com.citywithincity.utils;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import com.damai.mvc.view.View;

public class WebError extends RuntimeException implements View {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4823091165998197782L;
	
	
	public WebError(String error){
		super(error);
	}


	@Override
	public void renderTo(HttpServletResponse response) throws IOException {
		
		response.getWriter().print("<meta charset=\"UTF-8\">");
		response.getWriter().print(getMessage());
		
	}

}
